﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using Mite.BuildTask;
using Mite.Client;
using Mite;
using NAnt;
using NAnt.Core;
using NAnt.Core.Attributes;


namespace Mite.NantTask
{

    [TaskName("MigrationTask")]
    public class MigrationTask : Task, IMigrationTask
    {
        protected override void ExecuteTask()
        {
            this.Migrate();
        }

        [TaskAttribute("SelectedEnvironment")]
        public string SelectedEnvironment
        {
            get;
            set;
        }

        [StringValidator(AllowEmpty = true), TaskAttribute("MiteAssemblyFilePath")]
        public string MigrationDirectory
        {
            get;
            set;
        }
        [StringValidator(AllowEmpty = true), TaskAttribute("EnvironmentSettingsFilePath")]
        public string EnvironmentSettingsFilePath
        {
            get; set;
        }
    }
}
